package edu.hbsi.demo1;

public class TestStudent {
    public static void main(String[] args) {
        //s1叫做引用变量
        Student s1=new Student();
//        s1.name="hello";
//        s1.setNum("小程");
//        s1.setAddress("anhui");
//        s1.setAge(19);
        System.out.println(s1.toString());
        //同名同参同返回值
//        Student s2=new Student("hii",19,"baoding",17);
//        System.out.println(s2);//当我们直接输入对象时，其实就调用了对象的toString()方法


    }


}
